package cc.comac.mom.service.impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipInventorySpareRelationService;
import cc.comac.mom.bean.EquipInventorySpareRelation;
import cc.comac.mom.bean.ResultDev;
import cc.comac.mom.datahandlers.entity.EquipInventorySpareRelationDataHandler;
import cc.comac.mom.entity.EquipInventorySpareRelationEntity;
import cc.comac.mom.util.ResultBean;
@Service
@RestController
public class EquipInventorySpareRelationServiceImpl implements EquipInventorySpareRelationService {

	@Autowired
	private EquipInventorySpareRelationDataHandler equipInventorySpareRelationDataHandler;
	@Override
	public ResultDev selectSpareDataBynventotyId(@RequestBody EquipInventorySpareRelation equipInventorySpareRelation) {
		
		return equipInventorySpareRelationDataHandler.selectSpareDataPageByInventotyId(equipInventorySpareRelation);
	}
	@Override
	public ResultBean batchDelete(@RequestBody List<EquipInventorySpareRelationEntity> list) {
		ResultBean batchDelete = equipInventorySpareRelationDataHandler.batchDelete(list);
		return batchDelete;
	}

}
